package com.twu.biblioteca.command;

import com.twu.biblioteca.BibliotecaModel;
import com.twu.biblioteca.Movie;
import com.twu.biblioteca.util.Messages;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 5/21/13
 * Time: 4:50 PM
 * To change this template use File | Settings | File Templates.
 */
public class ListMoviesCommand extends Command {
    @Override
    public void runCommand() {
        showMoviesList();
    }

    private void showMoviesList() {
        System.out.println(Messages.Movie_List_Title);

        for (Movie movie : BibliotecaModel.getMovies()) {
            System.out.println(movie.toString());
        }
    }
}
